package org.netty.push.client.message;

import org.netty.push.client.message.handler.ConnectedResponseHandler;
import org.netty.push.client.message.handler.DataRequestHandler;
import org.netty.push.client.message.handler.DefaultMessageHanderManger;
import org.netty.push.core.proto.handler.MessageHandlerManager;

public class HandlerManagerFactory {
		
	private HandlerManagerFactory() {}
	
	public static  MessageHandlerManager buildHandler() {
		MessageHandlerManager messageHandlerManager=new DefaultMessageHanderManger();
		messageHandlerManager.getMessageHander().add(new DataRequestHandler() );
		messageHandlerManager.getMessageHander().add(new ConnectedResponseHandler() );

		return messageHandlerManager;
	}
}
